package top.dancun.easuser.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.dancun.common.utils.R;
import top.dancun.easuser.config.FeignConfig;

@Component
@FeignClient(name = "EAS-teacher",configuration = FeignConfig.class)
public interface TeacherFeign {

    @GetMapping("/easteacher/teacher/info/{uid}")
    public R getTeacher(@PathVariable String uid);
}
